

package jetbrains.buildServer.server.rest.service.core;

import java.util.List;
import jetbrains.buildServer.serverSide.SProject;
import jetbrains.buildServer.ssh.TeamCitySshKey;
import org.jetbrains.annotations.NotNull;

public interface ProjectSshKeyCoreService {
  @NotNull
  List<TeamCitySshKey> getSshKeys(@NotNull SProject project);
  void addSshKey(@NotNull SProject project, @NotNull String keyName, @NotNull byte[] privateKey);
  TeamCitySshKey generateSshKey(@NotNull SProject project, @NotNull String keyName, @NotNull String keyType);
  void deleteSshKey(@NotNull SProject project, @NotNull String keyName);
  @NotNull
  String getPublicKey(@NotNull TeamCitySshKey key);
}